﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PlanB.ShareDove.ConferenceOrganization.BusinessLayer.DataLayerInterface.Entities
{
    
    /// <summary>
    /// Conference Country
    /// </summary>
    public class ConferenceCountry : ConferenceBaseEntity
    {
        /// <summary>
        /// Name of the country
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// ISO 31661-1 (two letter) code of the country 
        /// </summary>
        /// <remarks>See: http://en.wikipedia.org/wiki/ISO_3166-1 </remarks>
        public string Iso3166_1 { get; set; }


        /// <summary>
        /// ToString override - return Name of the country, if avilable, othervise base 
        /// </summary>
        /// <returns>return name of the country, if avilable, othervise base </returns>
        public override string ToString()
        {
            return string.IsNullOrEmpty(Name) ? base.ToString() : Name;
        }
    }
}
